﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using BBICMS.Model;
using BBICMS.Core;

namespace BBICMS.Repository
{
    public interface IEFRepository<T> where T : BaseEntity
    {
        IEnumerable<T> GetAll();
        IEnumerable<T> FindBy(Expression<Func<T, bool>> predicate);
        T GetById(int id);
        void Add(T entity);
        void Update(T entity);
        void Delete(T entity);
        void Delete(int id);
        void Save();
    }
}
